home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
EOT_Rotate.ifx.pre
< prev
next >
Wrap
Text File
|
1996-03-02
|
1KB
|
46 lines
/*
* EOT_Rotate.ifx.pre
* Written by Thomas Krehbiel
*
* 2D Rotation.
*
* Inputs:
* Word(Arg(1),1) = Sequence number (?)
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_Rotate_'
x1 = GETCLIP(base||'x1')
y1 = GETCLIP(base||'y1')
a1 = GETCLIP(base||'a1')
a2 = GETCLIP(base||'a2')
IF x1 = "" THEN x1 = -1
IF y1 = "" THEN y1 = -1
IF a1 = "" THEN a1 = 0
IF a2 = "" THEN a2 = 360
Gadget.1 = 'INTEGER 200 5 50 14 "Center of Rotation X:"' x1
Gadget.2 = 'INTEGER 300 5 50 14 "Y:"' y1
Gadget.3 = 'INTEGER 200 20 50 14 "Angle Start:"' a1
Gadget.4 = 'INTEGER 300 20 50 14 "End:"' a2
Gadget.5 = 'TEXT 215 36 1 1 "(-1,-1 selects the exact center of the image.)" JU=2'
Gadget.6 = 'END'
NewComplexRequest '"2D Rotation"' Gadget 430 50
IF rc ~= 0 THEN EXIT rc
CALL SETCLIP(base||'x1', result.1)
CALL SETCLIP(base||'y1', result.2)
CALL SETCLIP(base||'a1', result.3)
CALL SETCLIP(base||'a2', result.4)
EXIT